package com.ruoyi.residents.controller;

import com.ruoyi.pojo.TbBuildingblock;
import com.ruoyi.residents.service.TbBuildingblockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("buildingblock")
public class TbBuildingblockController {

    @Autowired
    private TbBuildingblockService tbBuildingblockService;

    @RequestMapping("findAll")
    public List<TbBuildingblock> findAll() {
        return tbBuildingblockService.list();
    }

}
